<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <form action="" method="post">
        {% csrf_token %}
        {{ form.as_p }}  #自动在每一个input标签外套上一个p标签
        <input type='submit' value="提交">
    </form>

</body>
</html>